﻿namespace AiFrame.InterfaceLib.MVP
{
    /// <summary>
    /// Represents a provider which offers a data source.
    /// </summary>
    public interface IDataSourceProvider<T>
    {
        /// <summary>
        /// Sets the data source.
        /// </summary>
        /// <param name="dataSource">The data source.</param>
        void SetDataSource(T dataSource);

        /// <summary>
        /// Returns the data source.
        /// </summary>
        /// <returns>The data source.</returns>
        T GetDataSource();
    }
}
